Games24x7.com interview question

Butterfly effect and four functions problem