solution of leetCode problems