This is my solution to the CodinGame challenge chuck Norris: http://www.codingame.com/ide/700413248bbce8729ae86caa880551b53b2f7c