Booking.com Interview Question

They asked a simple dice rolling probability question and asked me to solve an ios problem in code.