Runtime Error || How does Comparator works ?
\nbool getResult(string &s1,string &s2){\n    if(s1.length()<s2.length())\n            return true;\n    if(s1.length()>s2.length())\n        return false;\n   
```\nbool getResult(string &s1,string &s2){\n    if(s1.length()<s2.length())\n            return true;\n    if(s1.length()>s2.length())\n        return false;\n    for(int i=0;i<s1.length();i++){\n        if(s1[i]==s2[i])\n            continue;\n        if(s1[i]<s2[i])\n            return true;\n        else \n            return false;\n    }\n    return true;\n}\n\nstruct myCmp {\n    bool operator()(string &s1,string &s2){\n        return getResult(s1,s2);\n    }\n};\n\nclass Solution {\npublic:\n    string kthLargestNumber(vector<string>& nums, int k) {\n        vector<string> input(nums.begin(),nums.end());\n        sort(input.begin(),input.end(),myCmp());\n        return input[input.size()-k];\n    }\n};\n\n```\n\nRuntime Error Message:\n=================================================================\n==29==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x7fbbe6335a08 at pc 0x00000034622d bp 0x7ffc5cf26440 sp 0x7ffc5cf26438\nREAD of size 8 at 0x7fbbe6335a08 thread T0\n    #6 0x7fbbe959f0b2  (/lib/x86_64-linux-gnu/libc.so.6+0x270b2)\n0x7fbbe6335a08 is located 8 bytes to the right of 320000-byte region [0x7fbbe62e7800,0x7fbbe6335a00)\nallocated by thread T0 here:\n    #5 0x7fbbe959f0b2  (/lib/x86_64-linux-gnu/libc.so.6+0x270b2)\nShadow bytes around the buggy address:\n  0x0ff7fcc5eaf0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00\n  0x0ff7fcc5eb00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00\n  0x0ff7fcc5eb10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00\n  0x0ff7fcc5eb20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00\n  0x0ff7fcc5eb30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00\n=>0x0ff7fcc5eb40: fa[fa]fa fa fa fa fa fa fa fa fa fa fa fa fa fa\n  0x0ff7fcc5eb50: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa\n  0x0ff7fcc5eb60: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa\n  0x0ff7fcc5eb70: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa\n  0x0ff7fcc5eb80: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa\n  0x0ff7fcc5eb90: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa\nShadow byte legend (one shadow byte represents 8 application bytes):\n  Addressable:           00\n  Partially addressable: 01 02 03 04 05 06 07 \n  Heap left redzone:       fa\n  Freed heap region:       fd\n  Stack left redzone:      f1\n  Stack mid redzone:       f2\n  Stack right redzone:     f3\n  Stack after return:      f5\n  Stack use after scope:   f8\n  Global redzone:          f9\n  Global init order:       f6\n  Poisoned by user:        f7\n  Container overflow:      fc\n  Array cookie:            ac\n  Intra object redzone:    bb\n  ASan internal:           fe\n  Left alloca redzone:     ca\n  Right alloca redzone:    cb\n  Shadow gap:              cc\n==29==ABORTING
[]