Neuron Mobility interview question

LeetCode and math question - poker