HackerRank Challenge (Digital Camera Autodetect: Day or Night)