A simple function to convert a dot notation string to its corresponding value on an object, written as part of a technical evaluation.