Hitachi Vantara Interview Question

implement stacks using queue. reverse a string analysis and design algorithm