Problem

Complete the given apex method to find the product code from a given string. The input string contains the product code, which is the set of characters following the first '-'.


Instructions:


1. Accept a string parameter as input.


2. Find the characters after the first '-' from the input string.


3. Return the characters from step 2.



Example:


String input = 'iPhone-IP14PRO';
Boolean result = productManager.findProductCode(input);
// result will be IP14PRO


Note: String is a primitive data type in apex. Apex provides a set of built in functions to operate on strings. See the official documentation for apex string methods and utilize them to solve this scenario.