Anonymous interview question

Programming problem solved at home and extensively discussed during technical interview.