Approach3

This one is better