./studio_2.sh
x_combo
x_comboImplement a function to get a specific order from the combo. Let’s call this function x_combo where x refers to the position of a order from the back of a combo.
xis one-indexedAssume that all inputs are valid -
xwill never be more than the number of digits incombo
function x_order(order, x) {
// YOUR SOLUTION HERE
}
// Examples
x_order(1234, 1) // 4
x_order(1234, 3) // 2
x_order(12345678, 8) // 1x_comboLast updated