Tech Mahindra interview question

write a program to work with windmill?