Talk is cheap. Show me the code.
Problem : https://www.hackerrank.com/challenges/java-instanceof-keyword/problem
Solution :