Fixed Solution 05.2

Proper way to write.
!= should be !==
Then, the condition becomes improper. Hence, the changed code.