Help in writing program

?