Moonpreneur Interview Question

Write a java program to create a function of divide.