How to make wall/obstacle avoiding robot with arduino uno atmega 328

and also suitable program/code for it...

Gee, I don't think anyone has ever done that. You just night have to develop your own code.