Reverse Coding Challenge #6

Published by supafly in

This is a reverse coding challenge. Normally you're given explicit directions with how to create a function. Here, you must generate your own function to satisfy the relationship between the inputs and outputs.

Your task is to create a function that, when fed the inputs below, produces the sample outputs shown.

Examples

MysteryFunc(152) ➞ 10

MysteryFunc(832) ➞ 48

MysteryFunc(19) ➞ 9

MysteryFunc(133) ➞ 9

Notes

N/A

Watch a quick demo on how Edabit works.