Cognizant Interview Question

Write a code that plays a snake and ladders game