Pergunta de entrevista da empresa Moveinsync Technology Solutions

sort a stack only using push pop find element in rotated sorted array