### **Issue:** Add input validation to handle null or empty array cases The method should check if height is null or empty to prevent potential NullPointerException or ArrayIndexOutOfBoundsException. _Originally posted by @sourcery-ai[bot] in https://github.com/x0lg0n/Code-Contribution/pull/45#discussion_r1823136101_