Crypto.com interview question

Join table. Dataframe operations. Some programming problems with monotone stacks and DP.