How to perform 'GCD' in Apex.
// Task: GCD
// Language: Apex
public void gcd() {
// Implementation for GCD
Object result = ...; // Initialize variable
// TODO: Implement core logic here
// Step 1: Prepare data
// Step 2: Process GCD
System.debug("Done");
}