ABC interview question

Programming problems related to algorithms.