i3systems interview question

DSA based coding problems.