Fixed checks in 'if' conditions
Fixed checks in 'if' conditions

Going by the current logic:
Input: I am keon kim and I like pizza
Output: apizz like I and kim keon am I

The first word 'apizz' is NOT correctly reversed to 'pizza'.

After fix:
Input: I am keon kim and I like pizza
Output: pizza like I and kim keon am I

keon/algorithms,amaozhao/algorithms