Adding codes for 4 problems in leetCode

Signed-off-by: Ajeet Jha <ajeetjha1@gmail.com>