Frequentis interview question

Solve logic problems and programming problems