A Weird Way to Substring in C++

A Weird Way to Substring in C++
Source: Codementor