coding interview problem

visit shbcf.ru