Tech Mahindra Interview Question

write a program to work with windmill?