Finish the method definition given below.
ticket_lot
is an array of hashes of lottery tickets. Each hash has keys :id
and :name
, the id of the ticket and the owner's name.
Given ticket_lot
, chose the winner whose ticket id is divisible by 113. If there are more than 1, then try 251, 376 and 401 in that order. There will at least be one ticket that matches the winning logic.