HackerEarth Indent Ruby problem solution YASH PAL, 31 July 2024 In this HackerEarth Indent, Ruby problem solution Write your program in Ruby which takes an un-indented Ruby code as a string and outputs the indented Ruby code as a string. HackerEarth Indent Ruby problem solution. import java.util.Scanner;class TestClass {public static void main(String args[] ) throws Exception {Scanner sc=new Scanner(System.in);String ucode=sc.next();System.out.println("class YabbaDabbaDoon def foo n if foo == 42 n puts 'world hello' n elsif foo == 24 n puts 'bk201' n else n puts 'congrats!'");System.out.println(" end");System.out.println(" end");System.out.println("end");}} coding problems