Tbh as a newbie programming doesnt matter as much and pretty much any shit program will give you results provided your eating properly. That being said a good program wont hurt and it will benefit you in the long run.
what that trainer gave you doesnt even have a progression scheme and its just a bunch of exercises and sets. For example 3×10 Deadlifts randomly thrown in after squats and leg extensions is just stupid and taxing.
Pick a program from T-Nation ( I’d suggest doing this and stick with it for 12+ weeks )
Eat alot of protein,carbs and fats to grow. If you’re not gaining weight eat more simple.