Amazon interview question

Complied vs script languages and what is pros and cons using it