Sigmoid Interview Question

coding problem and sql questions