Vitaliy's submission of Needles and Pins | CodeChef