LTIMindtree Interview Question

Write a code to explain about controlled and uncontrolled components?