Using of both sound n light sensor in a loop

the bot should work with both light n sound sensors.
while working with light sensor on a track it should also work when there is input from sound sensor like if first time sound is given it should turn right and at second it should turn left and third stop.

That sounds relatively easy.
What code have you written so far ?