Teddy and tracy

i want to know review on this and how to write a program on this