There is no shortcut worth taking here. The honest answer is that rank in Platform Racing 2 comes from experience points, and experience comes from racing, so rank 40 is a matter of time and consistency rather than a trick.
A few things that genuinely speed the climb: race the longer tracks, since they award more XP than short ones; finish rather than restart, because abandoned races earn nothing; and race against fields near your own rank so you are placing well instead of trailing.
You may run into guides suggesting multiple accounts to feed XP to a main. That breaks the game's rules and tends to end with the accounts involved being reset or banned, so it costs more than it saves.