v1 works for naive cases
correct algo passes all test cases
add thoughts to the sol
sol of q142