Running ltrace with the below syntax would reveal the flag.
ltrace -s 40 <binary>
**what "-s" does?**
The default string length in ltrace is 32. The flag length is 40. So setting the string length to 40 would give the flag.