Stack Route interview question

- Coding test on Algorithm 's and Data Structures