added hackerrank code file
optimized solutions.java still giving error