Hitachi Vantara interview question

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