what is the solution
Sounds like its starting to go out.
May try to lubricate the starter bendix gear shaft once every couple of months with a light spray oil. Low voltage (voltage drop) to the starter due to bad battery cables or a bad solenoid.
Search Toyota Yaris Questions
Toyota Yaris Experts