LLD - Design — Parking Lot System
Find the bug in this code snippet:
class Spot {
boolean isAvailable = true;
void park() {
if (isAvailable = false) {
System.out.println("Spot occupied");
}
}
}