Softsol interview question

algorithmic questions