delete wrong solution
more thinking
concise and readable
concise and readable
more thinking
more concise
update
concise solution