Booking.com interview question

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