HackerEarth interview question

Standard Data structure & Algorithm questions