What have you tried?
Post your program and tell us what it actually does and what you want it to do that is different.
Have you written short separate programs to learn how to control a servo and get data from your ultrasonic sensor?
If you want someone to write a program for you please ask in the Gigs and Collaborations section of the Forum and be prepared to pay.
...R